﻿using Dapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SIG.DAL.Dapper.Model
{
    [Table("TechnologySet")]
    public partial class Technology
    {
        [Key]
        public virtual int Id { get; set; }       
        public virtual string EnglishTitle { get; set; }       
        public virtual string Title { get; set; }       
        public virtual string Body { get; set; }        
        public virtual string ImagesURL { get; set; }       
        public virtual bool Active { get; set; }     
        public virtual int Importance { get; set; }      
        public virtual int ProductId { get; set; }
        public virtual Product Product { get; set; }
        public virtual DateTime CreatedDate { get; set; }
        public virtual string CreatedBy { get; set; }
        public virtual DateTime? UpdatedDate { get; set; }
        public virtual string UpdatedBy { get; set; }

        [Editable(false)]
        public string ProductTitle
        {
            get { return Product != null ? Product.ProductName : string.Empty; }
        }

    }
}
